]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
authPrompt: Don't hide the caps lock warning label
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 11 Feb 2020 15:03:07 +0000 (12:03 -0300)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 12 Feb 2020 19:29:48 +0000 (19:29 +0000)
Hiding the Caps lock warning label changes the layout of
Auth Prompt. This is specially noticeable when logging in
with unlisted users, where we change the visibility of this
label after typing a username, and the whole user widget
moves a bit.

Change the Cap lock label's opacity instead of hiding it.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/922

js/gdm/authPrompt.js

index 5b6966eb5c74544f766727fb10a95d0cedbebab3..df8767b829f36488353ea83d2e8f053ae1bb1f5f 100644 (file)
@@ -200,7 +200,7 @@ var AuthPrompt = GObject.registerClass({
             this._mainBox.replace_child(this._entry, this._textEntry);
             this._entry = this._textEntry;
         }
-        this._capsLockWarningLabel.visible = secret;
+        this._capsLockWarningLabel.opacity = secret ? 0 : 255;
     }
 
     _onAskQuestion(verifier, serviceName, question, secret) {